package day10;

/**
 * @author oldliu
 * @since 1.0
 */
public class Lord {
    public static void main(String[] args) {
        Thread.currentThread().setName("王家大地主");
        Thread4 th=new Thread4("小li");
        Thread4 th2=new Thread4("小张");
        th.start();
        th2.start();
        while (true){
            try {
                System.out.println("地主睡觉了");
                Thread.sleep(1400);
                System.out.println("地主睡xin了，喊工人干活");
                th.interrupt();
                th2.interrupt();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
